<?php
/**
 * 作者：云喵软件开发工作室
 * 官网：https://www.meoyun.com
 */

namespace app\service;

use yzh52521\mailer\Mailer;

/**
 * 邮件服务
 */
class EmailService
{

    public static function sendEmail($to, $subject, $body, $attachments = []): void
    {
        Mailer::setFrom("mmteen@sina.com")->setTo($to)->setSubject($subject)->setTextBody($body)->send();
    }
}